Ext.define("AM.component.Symbol", {

    extend:'Ext.Window',

    title:'特殊符号',
    autoScroll:true,
    width:500,
    height:300,
    autoShow:true,
    collapsible:true,

    constructor:function () {
        var rsContainer = Ext.widget('textfield',{
            fieldLabel:"结果",
            height:25,
            width:480
        })
        var items = [rsContainer];
        items.push(rsContainer);


        var symbols = "αβγδεζηθικλμνξοπρτυφχ♣♦♥♠";
        var len = symbols.length;
        for (var i = 0; i < len; i++) {
            var symbol = symbols[i];
            var item = {
                xtype:'button',
                text:symbol,
                symbol: symbol,
                columnWidth:.10,
                handler:function () {
                    var s = rsContainer.getValue();
                    s += this.symbol
                    rsContainer.setValue(s)
                }
            }
            items.push(item)
        }

        this.items = items;
        this.callParent(arguments);
    }



})